package com.huaxin.hxmodulesystem.dto.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AddSysUserReqDTO {
    /**
     * 用户名
     */
    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
    private String username;
    /**
     * 密码
     */
    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    private String passwordHash;
    /**
     * 邮箱
     */
    @Schema(description = "邮箱", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin@example.com")
    private String email;
    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "管理员")
    private String realName;
    /**
     * 状态
     */
    @Schema(description = "状态: 1=启用, 0=禁用, -1=锁定", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer status;

    /**
     * 最后登录时间
     */
    @Schema(description = "最后登录时间", example = "2023-01-01 00:00:00")
    private LocalDateTime lastLoginTime;
    /**
     * 最后登录IP
     */
    @Schema(description = "最后登录IP", example = "192.168.1.1")
    private String lastLoginIp;
    /**
     * 锁定时间
     */
    @Schema(description = "锁定时间", example = "2023-01-01 00:00:00")
    private LocalDateTime lockedUntil;
    /**
     * 手机号
     */
    @Schema(description = "手机号", example = "13800000000")
    private String phone;
}
